//
//  VOHMusicHeader.m
//  VoiceOfHeart
//
//  Created by 吉龙 on 16/8/22.
//  Copyright © 2016年 吉龙. All rights reserved.
//

#import "VOHMusicHeader.h"
@interface VOHMusicHeader()
@property(nonatomic, strong)UILabel *title;
@end

@implementation VOHMusicHeader

-(instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
        [self setUpView];
    }
    return self;
}

-(void)setUpView{
    self.title = [[UILabel alloc] initWithFrame:CGRectMake(5, 5, 200, 30)];
    self.title.text = @"经典";
    [self.contentView addSubview:self.title];
    self.button = [VOHButton creatButtonWithFrame:CGRectMake(ScreenWidth - 100, 5, 80, 30) Title:@"查看全部" HighLightImageName:nil ImageName:nil];
    [self.button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [self.contentView addSubview:self.button];
}

-(void)setModel:(VOHMusicTableViewModel *)model{
    _model = model;
    self.title.text = model.title;
}

@end
